package com.hgh.designmodel.bridge;

/**
 * @author: huguanghui
 * Created by huguanghui on 2018/7/4.
 * @Description:
 */
public class Main {

    public static void main(String[] args){
        //白色
        Color white = new White();
        //正方形
        Shape square = new Square();
        //白色的正方形
        square.setColor(white);
        square.draw();

        //长方形
        Shape rectange = new Rectangle();
        rectange.setColor(white);
        rectange.draw();

    }
}
